package org.example.rowing.domain;

import lombok.Data;

/**
 * 报名选手明细表
 */
@Data
public class RegistrationWithAthlete {
    private Long id;             // 明细id
    private Long registrationId; // 关联报名id
    private Long athleteId;      // 关联运动员id
    private String athleteNum;   // 选手编号
    private String athleteName;  // 选手姓名-冗余参数

    public RegistrationWithAthlete() {}

    public RegistrationWithAthlete(Long id, Long registrationId, Long athleteId, String athleteName, String athleteNum) {
        this.id = id;
        this.registrationId = registrationId;
        this.athleteId = athleteId;
        this.athleteName = athleteName;
        this.athleteNum = athleteNum;
    }
}
